package com.example.service.customer.dubbo;

import com.example.service.api.dto.CustomerDTO;
import com.example.service.api.service.CustomerDubboService;
import com.example.service.customer.service.CustomerService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/*
@author SupUncleBlack
@date 2021/9/1 - 15:52
*/
@DubboService(version = "1.0.0")
public class CustomerDubboServiceImpl implements CustomerDubboService {
    @Autowired
    private CustomerService customerService;

    @Override
    public CustomerDTO insertCustomer(CustomerDTO customerDTO) {
        return customerService.insertCustomer(customerDTO);
    }

    @Override
    public CustomerDTO getCustomerByIdNumber(String idNumber) {
        return customerService.getCustomerById(idNumber);
    }
}
